package com.zbkj.common.response.monitor;

import cn.hutool.json.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbkj.common.model.merchant.Merchant;
import com.zbkj.common.monitorchannel.vo.MonitorChannelEquipmentStatusVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ClassName: ZfbMonitorEquipment
 * @Description: TODO
 * @Author: fanbing
 * @Date: 2024/6/29 12:51
 * @Version: V1.0
 **/

@Data
public class ZfbMonitorEquipmentResponse {

    @ApiModelProperty(value = "设备ID")
    private Integer id;

    @ApiModelProperty("商户id")
    private Integer merchantId;

    @ApiModelProperty("设备名称")
    private String equipmentName;


    @ApiModelProperty("设备类型 0:鹤梦云 ")
    private Integer equipmentType;

    @ApiModelProperty("设备license")
    private String license;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;


    private JSONObject deviceModel;


    private MonitorChannelEquipmentStatusVo equipmentStatusVo;


    private ZfbEquipmentOrderResponse order;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    private LocalDateTime endTime;

    private Merchant merchant;

    @ApiModelProperty("监控流量类型 1=免费  2=付费")
    private Integer mealType;
}
